﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Hook.Graphics;
using Microsoft.Xna.Framework;
using Hook.Graphics.SpriteSheets;

namespace Hook.Environmental.Props
{
    public class Die : Prop
    {
        public Die()
            : base()
        {
            Sprite = new Sprite(Game1.PropSheet, PropSheet.DIE);
            Sprite.FrameRate = 2;

            List<Vector3> VO = new List<Vector3>();

            VO.Add(new Vector3(40, 40, 0));
            VO.Add(new Vector3(-40, 40, 0));
            VO.Add(new Vector3(-40, -40, 0));
            VO.Add(new Vector3(40, -40, 0));

            Frame.SetPoints(VO);

            //Rotation = new Vector3(0, 0, 0);
            Mass = 10;
            //Inertia = 2000;
            Inertia = 20000;
            CollisionLayer.Add(0);
            GravityOn = true;
        }
    }
}
